Updates a specified collection of monitoring alerts for a specified connector and explains the update. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementGroup
Dim alerts As IList(Of T)
Dim comments As String
Dim connector As MonitoringConnector
Dim returnValue As ReadOnlyCollection(Of MonitoringAlertUpdateFailure)

returnValue = instance.UpdateMonitoringAlerts(alerts, comments, connector)

Syntax

Visual Basic
Public Function UpdateMonitoringAlerts(Of T As MonitoringAlert) ( _
		alerts As IList(Of T), _
		comments As String, _
		connector As MonitoringConnector _
) As ReadOnlyCollection(Of MonitoringAlertUpdateFailure)
C#
public ReadOnlyCollection<MonitoringAlertUpdateFailure> UpdateMonitoringAlerts<T> (
		IList<T> alerts,
		string comments,
		MonitoringConnector connector
) where T : MonitoringAlert
C++
public:
generic<typename T> where T : MonitoringAlert
ReadOnlyCollection<MonitoringAlertUpdateFailure^>^ UpdateMonitoringAlerts (
		IList<T>^ alerts, 
		String^ comments, 
		MonitoringConnector^ connector
)
J#

JScript

Parameters

alerts

The collection of alerts to update.

comments

The comments that explain the reason for the update.

connector

The connector for which to update the alerts.

Return Value

A read-only collection of MonitoringAlertUpdateFailure objects that contain information about the alerts that failed to update.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also